#ifndef __RECIPE_H__
#define __RECIPE_H__

#include "juce_amalgamated.h"
#include <iostream>
#include <vector>

//using juce;

class Recipe
{
  public:
    Recipe(const String &xmlpath);
    Recipe();
    ~Recipe();

    int getCookTime() const;
    int getPrepTime() const;
    int getServings() const;
    String getTitle() const;
    String getDirectionsString() const;
    String getIngredientsString() const;
    std::vector<int> getFoodID() const;
    TextLayout getIngredients() const;
    TextLayout getDirections() const;
    TextLayout getTimes() const;
    void operator=(const Recipe& other);

private:
    XmlElement* topelem;        /* Top-level element in the XML document */
    String title;               /* What to call this recipe on the form */
    String ingredients;         /* The string to display for all ingredients */
    String directions;          /* The string to display for all directions */
    int cookTime;               /* How long cooking is expected to take, in minutes */
    int prepTime;               /* How long preparation is expected to take, in minutes */
    int servings;               /* Number of servings this Recipe makes */
    std::vector<int> foodID;				/* The set of food IDs for ingredients. */

};

#endif /* __RECIPE_H__ */
